<?php if(!empty($output['pk_list']) && is_array($output['pk_list'])){ ?>
    <?php  foreach($output['pk_list'] as $k =>$v){ ?>

        <tr>
            <td class="rank"><span><?php echo $k+1;?></span></td>
            <td class="Initiator"><div><?php echo $v['nickname']; ?></div></td>
            <td class="tradeName"><div><?php echo $v['bg_title']; ?></div></td>
            <td class="number"><span><?php echo $v['in_all'];?></span></td>
        </tr>
    <?php } ?>
<?php } ?>